package com.example.smartcity.logic.utils

import android.graphics.drawable.Drawable
import android.widget.ImageView
import com.bumptech.glide.request.target.ViewTarget
import com.example.smartcity.SmartCityApplication.Companion.context

/**
 *  ANDROID STUDIO @version 2022.1
 *          @email 2506789532@qq.com  @ikun
 *  time: 2023/1/22 12:17
 *
 *
 **/
class Glide {
    fun getGlide(url: String, img: ImageView): ViewTarget<ImageView, Drawable> {
        return com.bumptech.glide.Glide.with(context)
            .load(url)
            .into(img)
    }
}